package com.meilian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

//类别实体类
@Data
@TableName("category")
public class Category implements Serializable {

    private static final long serialVersionUID = 6864537934689543680L;
    @JsonProperty("category_id")
    @TableId(type=IdType.AUTO)
    private Integer categoryId;

    @JsonProperty("category_name")
    private String categoryName;
}
